import http from "@/util/http";

// export const stream = (params: any) =>
//   http.request({
//     url: `/stream`,
//     method: "post",
//     data: params,
//   });

export const stream = (params: { query: string; session_id: string }) => {
  return http.stream(`/stream`, params);
};

export const tableJson = (params: any) =>
  http.request({
    url: `/json_res`,
    method: "post",
    data: params,
  });
